package com.ethan.http;

public class ApiError {
    /**
     * 未知错误
     */
    public static final int UNKNOWN = 1000;
    /**
     * 解析错误
     */
    public static final int PARSE_ERROR = 1001;
    /**
     * 网络错误
     */
    public static final int NETWORD_ERROR = 1002;
    /**
     * 协议出错
     */
    public static final int HTTP_ERROR = 1003;

    /**
     * 证书出错
     */
    public static final int SSL_ERROR = 1005;

    /**
     * 连接超时
     */
    public static final int TIMEOUT_ERROR = 1006;
    /**
     * 未知主机异常
     */
    public static final int UNKOWN_HOST = 1007;
    /**
     * I/O异常
     */
    public static final int IO_ERROR = 1008;
    /**
     * Json解析异常
     */
    public static final int JSONSYNTAX_ERROR = 1009;

    /**
     * IllegalStateException
     */
    public static final int ILLEGALSTATE_ERROR = 1010;


    //服务器业务错误 -自己根据业务服务定义
    //没有权限访问请重新登录
    public static final int BUSINESS_NO_PERMISSION = 100;
    //服务器异常
    public static final int BUSINESS_SERVER_ERROR = 101;
}
